From bf70c786774b46ceea11f88ab5fe416789532478 Mon Sep 17 00:00:00 2001 From: Keir Fraser Date: Tue, 7 Apr 2009 14:24:53 +0100 Subject: [PATCH] xm: handle error in auxbin gracefully Signed-off-by: Christoph Egger --- tools/python/xen/util/auxbin.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/tools/python/xen/util/auxbin.py b/tools/python/xen/util/auxbin.py index 75e38a838e..e1830001bb 100644 --- a/tools/python/xen/util/auxbin.py +++ b/tools/python/xen/util/auxbin.py @@ -35,7 +35,11 @@ def execute(exe, args = None): a = [ exepath ] if args: a.extend(args) - os.execv(exepath, a) + try: + os.execv(exepath, a) + except OSError, exn: + print exepath, ": ", exn + sys.exit(1) def pathTo(exe): -- 2.30.2